export interface SendByteRate {
  average: string;
  timestamp: string;
  unit: string;
}

export interface CceInfoItem {
  clusterName: string;
  cpuCoreLimit: string;
  cpuCoreUsed: string;
  totalMem: string;
  usedMem: string;
  sendBytesRate: SendByteRate[];
  recvBytesRate: SendByteRate[];
}
export interface GenealInfoItem {
  sendBytesRate: SendByteRate[];
}

export type CceClusterInfoParam = {
  cceInfoId: string;
};
export interface CceDetailItem {
  id: string;
  ip: string;
  cpuUsage: SendByteRate[];
  memUsedRate: SendByteRate[];
}
export type CceInfoParam = {
  cceInfoId: string;
  nodeIp: string;
};

export interface RdsItem {
  instanceId: string;
  instanceName: string;
  status: string;
  type: string;
  version: string;
  cpuUtil: string;
  memUtil: string;
  diskUtil: string;
  diskTotalSiza: string;
  diskUsedSiza: string;
}

export interface DcsItem {
  instanceId: string;
  instanceName: string;
  status: string;
  engine: string;
  engineVersion: string;
  cpuType: string;
}

export type RdsParam = {
  instanceId: string;
  metricName: string;
};

export type DcsParam = RdsParam;

export interface CceInfoList {
  cceInfoName: string;
  cceInfoId: string;
}

export interface CceClusterItem {
  id: string;
  clusterName: string;
}

export interface CceHostItem {
  id: string;
  ip: string;
  cpuUsage: string;
  memUsedRate: string;
  freeMem: string;
  cluster: string;
}
